<?php
/* @var $this SecondaryStairOrFireEscapeController */
/* @var $model SecondaryStairOrFireEscape */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'secondary-stair-or-fire-escape-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'number'); ?>
		<?php echo $form->textField($model,'number'); ?>
		<?php echo $form->error($model,'number'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'width'); ?>
		<?php echo $form->textField($model,'width',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_the_width'); ?>
<?php echo $form->dropDownlist($model, 'units_of_measurement_of_the_width',$model->getMeasurement() ,
		array('prompt' => 'Select a Unit of Measurement',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_the_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'stair_construction'); ?>
		<?php echo $form->textArea($model,'stair_construction',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'stair_construction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'railing_provided'); ?>
		<?php echo $form->textField($model,'railing_provided'); ?>
		<?php echo $form->error($model,'railing_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rp_made_of'); ?>
		<?php echo $form->textArea($model,'rp_made_of',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'rp_made_of'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'location'); ?>
		<?php echo $form->dropDownlist($model, 'location',$model->getLocation() ,
		array('prompt' => 'Select a Location',)); ?>
		<?php echo $form->error($model,'location'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exit_accesible'); ?>
		<?php echo $form->textField($model,'exit_accesible'); ?>
		<?php echo $form->error($model,'exit_accesible'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'any_obstruction'); ?>
		<?php echo $form->textField($model,'any_obstruction'); ?>
		<?php echo $form->error($model,'any_obstruction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'termination_or_discharge_of_exit'); ?>
		<?php echo $form->textArea($model,'termination_or_discharge_of_exit',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'termination_or_discharge_of_exit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exit_enclosure_provided'); ?>
		<?php echo $form->textField($model,'exit_enclosure_provided'); ?>
		<?php echo $form->error($model,'exit_enclosure_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'enclosure_construction'); ?>
		<?php echo $form->textArea($model,'enclosure_construction',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'enclosure_construction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'any_opening'); ?>
		<?php echo $form->textField($model,'any_opening'); ?>
		<?php echo $form->error($model,'any_opening'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'opening_protected'); ?>
		<?php echo $form->textField($model,'opening_protected'); ?>
		<?php echo $form->error($model,'opening_protected'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_door_provided'); ?>
		<?php echo $form->textField($model,'fire_door_provided'); ?>
		<?php echo $form->error($model,'fire_door_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fdp_width'); ?>
		<?php echo $form->textField($model,'fdp_width',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'fdp_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_of_fdp_width'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_of_fdp_width',$model->getMeasurementa() ,
		array('prompt' => 'Select a Unit of Measurement',)); ?>
		<?php echo $form->error($model,'units_of_measurement_of_fdp_width'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_door_construction'); ?>
		<?php echo $form->textArea($model,'fire_door_construction',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'fire_door_construction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_provided_with_vision_panel'); ?>
		<?php echo $form->textField($model,'door_provided_with_vision_panel'); ?>
		<?php echo $form->error($model,'door_provided_with_vision_panel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'if_yes_made_of'); ?>
		<?php echo $form->textArea($model,'if_yes_made_of',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'if_yes_made_of'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_equipped_with_self_closing_device'); ?>
		<?php echo $form->textField($model,'door_equipped_with_self_closing_device'); ?>
		<?php echo $form->error($model,'door_equipped_with_self_closing_device'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_and_enclosure_proper_rating'); ?>
		<?php echo $form->textField($model,'door_and_enclosure_proper_rating'); ?>
		<?php echo $form->error($model,'door_and_enclosure_proper_rating'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_open_easily'); ?>
		<?php echo $form->textField($model,'door_open_easily'); ?>
		<?php echo $form->error($model,'door_open_easily'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'self_closing_device_operable'); ?>
		<?php echo $form->textField($model,'self_closing_device_operable'); ?>
		<?php echo $form->error($model,'self_closing_device_operable'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_equipped_with_panic_hardware'); ?>
		<?php echo $form->textField($model,'door_equipped_with_panic_hardware'); ?>
		<?php echo $form->error($model,'door_equipped_with_panic_hardware'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'operable'); ?>
		<?php echo $form->textField($model,'operable'); ?>
		<?php echo $form->error($model,'operable'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'door_swing_in_the_direction_of_exit_travel'); ?>
		<?php echo $form->textField($model,'door_swing_in_the_direction_of_exit_travel'); ?>
		<?php echo $form->error($model,'door_swing_in_the_direction_of_exit_travel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'enclosure_properly_protected'); ?>
		<?php echo $form->textField($model,'enclosure_properly_protected'); ?>
		<?php echo $form->error($model,'enclosure_properly_protected'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_escape_pressurized'); ?>
<?php echo $form->dropDownlist($model, 'fire_escape_pressurized',$model->getPres() ,
		array('prompt' => 'Select a Type',)); ?>
		<?php echo $form->error($model,'fire_escape_pressurized'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pressurized_type_of_method'); ?>
		<?php echo $form->textArea($model,'pressurized_type_of_method',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'pressurized_type_of_method'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_last_tested'); ?>
		<?php echo $form->textField($model,'date_last_tested'); ?>
		<?php echo $form->error($model,'date_last_tested'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'investigation_establishment_id'); ?>
		<?php echo $form->textField($model,'investigation_establishment_id'); ?>
		<?php echo $form->error($model,'investigation_establishment_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'investigation_general_information_id'); ?>
		<?php echo $form->textField($model,'investigation_general_information_id'); ?>
		<?php echo $form->error($model,'investigation_general_information_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exit_detail_id'); ?>
		<?php echo $form->textField($model,'exit_detail_id'); ?>
		<?php echo $form->error($model,'exit_detail_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->